package com.webbei.HAO.action;

import com.opensymphony.xwork2.ActionSupport;
import com.webbei.HAO.service.ChSer;

public class ConfirmPed extends ActionSupport{
    private String id;
    private String yuanpwd;
    private ChSer ser;
    private String str;
    private String password;
	public String execute(){
		int uid=Integer.parseInt(id);
	    password=ser.getPwdbyUid(uid);
	    System.out.println("password:"+password+"   "+"yuanpwd:"+yuanpwd);
	    if(!password.equals(yuanpwd)) str="false";
	    else str="true";
	    System.out.println("str:"+str);
	   return SUCCESS;
   }
	
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getYuanpwd() {
		return yuanpwd;
	}
	public void setYuanpwd(String yuanpwd) {
		this.yuanpwd = yuanpwd;
	}
	public ChSer getSer() {
		return ser;
	}
	public void setSer(ChSer ser) {
		this.ser = ser;
	}

	public String getStr() {
		return str;
	}

	public void setStr(String str) {
		this.str = str;
	}
	
}
